package com.cs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cs.domain.User;
import com.cs.dto.EditUserDTO;
import com.cs.dto.RegisterUserDTO;
import com.cs.result.Result;
import com.cs.vo.GetInfoUserVO;

public interface UserService extends IService<User> {
    /**
     * 用户注册
     * @param userDto
     * @return
     */
    Result register(RegisterUserDTO userDto);

    /**
     * 用户登录
     *
     */
    String login(String username, String password, Integer role);

    /**
     * 获取用户信息
     * @param currentId
     * @return
     */
    GetInfoUserVO getUserInfo(Integer currentId);

    /**
     * 修改用户信息
     * @param userDto
     */
    void updateUserInfo(EditUserDTO userDto);
}
